package com.onehash.onebilling.entity;


import java.io.Serializable;
import java.util.Date;

public class Transaction implements Serializable{
	
	// String strLine = getRandomAccount(customerAcc)+ delimiter+ getRandomDateTime() +delimiter+getRandomPlanType(planType)+delimiter+getRandomCallType(callType)+delimiter+
		//	 getRandomDuration() +delimiter+ getRandomNumberCalled();
		private String customerAcc;
		private String planType;
		private String callType;
		private Date dateTime;
		private int duration;
		private String numberCalled;
		

		public Transaction (String customerAcc,Date dateTime, String planType, String callType, int duration, String numberCalled) {
	    	this.customerAcc = customerAcc;
	    	this.dateTime = dateTime;
	    	this.planType = planType;
	    	this.callType = callType;
	    	this.duration = duration;
	    	this.numberCalled = numberCalled;

	    }    
	    public String getCustomerAcc() {
			return customerAcc;
		}

		public void setCustomerAcc(String customerAcc) {
			this.customerAcc = customerAcc;
		}

		public String getPlanType() {
			return planType;
		}

		public void setPlanType(String planType) {
			this.planType = planType;
		}

		public String getCallType() {
			return callType;
		}

		public void setCallType(String callType) {
			this.callType = callType;
		}

		public Date getDateTime() {
			return dateTime;
		}

		public void setDateTime(Date dateTime) {
			this.dateTime = dateTime;
		}

		public int getDuration() {
			return duration;
		}

		public void setDuration(int duration) {
			this.duration = duration;
		}

		public String getNumberCalled() {
			return numberCalled;
		}

		public void setNumberCalled(String numberCalled) {
			this.numberCalled = numberCalled;
		}


		public String toString () {
	        return (customerAcc + "_" +dateTime+"_"+ planType + "_"+ callType+"_"+ duration+"_"+numberCalled );
	    }

	    public void show () {
	        System.out.println (this);
	    }
	    
	

}
